function unlock(){
    $.ajax({
        url: "http://127.0.0.1/api/fake/",
        type: "POST",
        datatype: "json",
        success: function(data) {
            if (data.length == 0) {
                alert("Can't get data from server");
            }
            window.location = "http://127.0.0.1/api/success";
            });
        },
        error: function(data) {
        }
    });
}
